# -*- coding: utf-8 -*-
# @Time    : 2021/2/23 15:12
# @Author  : xiao
import configparser
import os

from basic.utils.path import Path


class GetValue():

    @staticmethod
    def read(session,key):
        config = configparser.ConfigParser()
        curpath = Path.getProjectPath()
        cfgpath = os.path.join(curpath, "config.ini")
        print("-------------------------------------")
        print(cfgpath)
        print("-------------------------------------")
        config.read(cfgpath)
        value=config.get(session,key)
        print(value)
        return value
